package com.tom.user.model;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author longjiang
 * @date 2020-03-26 11:23 上午
 * @description 返回给前端的实体封装
 **/

@Data
public class UserResultModel {

    private int id;


    private String username;


    private String idCardType;


    private String idCard;


    private String realName;


    @Email
    private String email;


    private String sex;


    private String province;


    private String city;

    private String district;


    private String address;


    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date signUpTime;


    private String birthday;


    @NotNull(message = "手机号不能为空")
    private String phone;

    private String avatar;

}
